<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('/checkWeixin', function () {
    return view('weixin.login');
});

// 登录注册
Route::group(['namespace'=>'admin'], function(){
    // 登录页面
    Route::get('/admin/login', 'LoginController@loginView');
    // 注册页面
    Route::get('/admin/register', 'RegisterController@registerView');
    // 验证注册信息
    Route::post('/admin/register/checkInfo', 'RegisterController@checkInfo');
});
